package javabase.schoolwork.day6_11;

/**
 * @author fance
 * @date 18-6-11 下午6:19
 */
public class Client {
    public static void main(String[] args) {
        Driver driver = new Driver();
        Benz benz = new Benz();
        BMW bmw = new BMW();


        driver.setCar(benz);
        driver.setCar(bmw);
        driver.driver(benz);
        driver.driver(bmw);
        System.out.println();

        driver.driver();

    }
}
